﻿using System;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace Stock.Core.MongoDB
{
    
    public class BaseMongoEntity
    {
        [BsonId]
        public ObjectId BsonId { get; set; }
    }

    public class MongoEntity<T>:BaseMongoEntity
    {
        public T data { get; set; }
    }
}
